package dd.prog2.musterExercises.ws12set13_4_mvc.gui;

import java.awt.Dimension;

/**
 * Starter for a second version of the Connect Four GUI with integrated
 * artificial intelligence player. The architecture of this version is based on
 * the model-view-controller pattern.
 * 
 * @author Ruediger Lunde
 * 
 */
public class ConnectFour {

	/**
	 * Creates model, view, and controller, connects the components and
	 * shows the view on the screen.
	 */
	public static void main(String[] args) {
		ConnectFourModel model = new ConnectFourModel();
		ConnectFourController controller = new ConnectFourController(model);
		ConnectFourView view = new ConnectFourView(model, controller);
		model.addObserver(view);
		view.setSize(new Dimension(450, 450));
		view.setVisible(true);
	}

}
